#ifndef HEADER_H
#define HEADER_H


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>


typedef struct _SEQLIST{
	int*		list;
	int			max_length;
	int			length;
}SeqList,* lpSeqList;


bool list_init(lpSeqList mylist,int length);
bool list_length(lpSeqList mylist,int* length);
bool list_max_length(lpSeqList mylist,int* max_length);
bool list_get(lpSeqList mylist,int locat,int* get);
bool list_prev(lpSeqList mylist,int locat,int* get);
bool list_next(lpSeqList mylist,int locat,int* get);
bool list_locate(lpSeqList mylist,int elem,int* locat);
bool list_insert(lpSeqList mylist,int locat,int elem);
bool list_delet(lpSeqList mylist,int locat);
bool list_empty(lpSeqList mylist);
bool list_isempty(lpSeqList mylist,bool* isempty);
bool list_free(lpSeqList mylist);



#endif
